import { api } from "@/lib/request";
import type { STResponseData, Response } from "@/types/response";

export const stAPI = {
  /**
   * 获取ST
   * @param service 服务URL
   * @returns ST响应
   */
  getST: (service?: string): Promise<Response & { data: STResponseData }> => {
    const params = new URLSearchParams();
    if (service) {
      params.append("service", service);
    }
    
    return api.get(`/cas/st?${params.toString()}`);
  },
};
